package com.qf.service.impl;

import com.qf.mapper.AccountMapper;
import com.qf.model.Account;
import com.qf.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName AccountServiceImpl
 * @Description TODO
 * @Author 86181
 * @Date 2022/9/6 20:35
 * @Version 1.0
 **/
@Service("accountService")
public class AccountServiceImpl implements AccountService {
    public AccountServiceImpl(){
        System.out.println("业务层初始化了");
    }
    @Autowired
    private AccountMapper accountMapper;
    @Override
    public List<Account> findAll() {
        List<Account> all = accountMapper.findAll();
        return all;
    }
}
